package cn.lili.modules.payment.entity.enums;

/**
 * 钱包变动日志业务枚举
 *
 * @author Chopper
 * @since 2020/8/20 15:39
 */
public enum WalletServiceTypeEnum {

    /**
     * 预存款变动日志业务类型枚举
     */
    RECHARGE(true, "充值"),
    WITHDRAWAL(false, "提现"),
    PAY(false, "支付"),
    REFUND(true, "退款"),
    COMMISSION(true, "佣金"),
    SETTLEMENT(true, "平台结算"),
    GIVE(true, "赠送");

    private final String description;
    private final Boolean isAdd;

    WalletServiceTypeEnum(Boolean isAdd, String description) {
        this.isAdd = isAdd;
        this.description = description;
    }

    public String description() {
        return description;
    }

    public Boolean getAdd() {
        return isAdd;
    }
}
